import request from '@/utils/request'

// 查询科类考点关联列表
export function listFamiliesexampoint(query) {
  return request({
    url: '/grant/familiesexampoint/list',
    method: 'get',
    params: query
  })
}

// 查询科类考点关联详细
export function getFamiliesexampoint(examPointId) {
  return request({
    url: '/grant/familiesexampoint/' + examPointId,
    method: 'get'
  })
}

// 新增科类考点关联
export function addFamiliesexampoint(data) {
  return request({
    url: '/grant/familiesexampoint',
    method: 'post',
    data: data
  })
}

// 修改科类考点关联
export function updateFamiliesexampoint(data) {
  return request({
    url: '/grant/familiesexampoint',
    method: 'put',
    data: data
  })
}

// 删除科类考点关联
export function delFamiliesexampoint(examPointId) {
  return request({
    url: '/grant/familiesexampoint/' + examPointId,
    method: 'delete'
  })
}

// 导出科类考点关联
export function exportFamiliesexampoint(query) {
  return request({
    url: '/grant/familiesexampoint/export',
    method: 'get',
    params: query
  })
}

// 查询科类考点选择列表
export function getFamiliesSelectList(query) {
  return request({
    url: '/grant/familiesexampoint/getFamiliesSelectList',
    method: 'get',
    params: query
  })
}
